package com.ys.otms.services;

import net.sf.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IConfigServices {

    JSONObject addGoodsConfig(HttpServletRequest request) throws Exception;
    JSONObject deleteGoodsConfig(HttpServletRequest request) throws Exception;
    JSONObject editGoodsConfig(HttpServletRequest request) throws Exception;
    JSONObject queryGoodsConfig(HttpServletRequest request) throws Exception;
    JSONObject queryParentGoodsConfig(HttpServletRequest request) throws Exception;
    Map<String, Object> queryAllGoodsConfig(HttpServletRequest request, String page, String limit) throws Exception;


    JSONObject addHuoZhuConfig(HttpServletRequest request) throws Exception;
    JSONObject deleteHuoZhuConfig(HttpServletRequest request) throws Exception;
    JSONObject editHuoZhuConfig(HttpServletRequest request) throws Exception;
    JSONObject queryHuoZhuConfig(HttpServletRequest request) throws Exception;

    JSONObject addLogisticsConfig(HttpServletRequest request) throws Exception;
    JSONObject deleteLogisticsConfig(HttpServletRequest request) throws Exception;
    JSONObject editLogisticsConfig(HttpServletRequest request) throws Exception;
    JSONObject queryLogisticsConfig(HttpServletRequest request) throws Exception;

    JSONObject queryRole(HttpServletRequest request);

    JSONObject queryCompanyBAS(HttpServletRequest request) throws Exception;

    JSONObject editCompanyBAS(HttpServletRequest request) throws Exception;

    Map<String, Object> queryHuoZhuConfigPage(HttpServletRequest request, String page, String limit);

    Map<String,Object> queryLogisticsConfigPage(HttpServletRequest request, String page, String limit);
}
